//
//  DownLoader.h
//  DownloadManager
//
//  Created by 马滕亚 on 2020/4/14.
//  Copyright © 2020 M.Y.A. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DownLoader : NSObject

- (void)downloadWithUrl:(NSURL *)url;

/**
 进度 -- 通知下载百分比 float
 是否完成 -- 通知下载保存的路径 NSString
 是否出错 -- 通知错误信息 NSString
 */
- (void)downloadWithUrl:(NSURL *)url progress:(void(^)(float progress))progress completion:(void(^)(NSString *filePath))completion faied:(void(^)(NSString *errorMsg))faied;

/** 暂停 */
- (void)pause;

@end

NS_ASSUME_NONNULL_END
